package src;

import org.slf4j.LoggerFactory;
import org.slf4j.Logger;

public class LogBackTest {
    //创建一个logger日志对象

    public static final Logger LOGGER = LoggerFactory.getLogger("LogBackTest");



    public static void main(String[] args) {



        try {
            LOGGER.info("除法方法开始执行····");
            chu(10,0);
            LOGGER.info("除法方法执行成功1111");
        }catch (Exception e){
            LOGGER.error("触发方法执行失败，出现了bug···");
//            e.printStackTrace();
        }
    }

    public static void chu(int a,int b){
        LOGGER.debug("参数a"+a);

        LOGGER.debug("参数b"+b);
        int c = a/b;
        System.out.println(c);
        LOGGER.info("结果是"+c);
    }
}
